package com.jrx.anytxn.reporting.job.lsSecondFile.step;

import com.jrx.anytxn.customer.entity.CmCustomerSecondLevel;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.batch.MyBatisPagingItemReader;

import java.util.HashMap;
import java.util.Map;

/**
 * 生成第二代征信个人基本信息 Reader
 *
 * @author liuyang
 * @date 2021-04-26
 */
public class LSSecondCustFileReader extends MyBatisPagingItemReader<CmCustomerSecondLevel> {
    public LSSecondCustFileReader(SqlSessionFactory sqlSessionFactory, Integer pageSize, String startTime){
        setSaveState(false);
        setPageSize(pageSize);
        setSqlSessionFactory(sqlSessionFactory);
        setQueryId("com.jrx.anytxn.customer.mapper.ext.ExtCmCustomerSecondLevelMapper.selectByUpdateTime");
        Map<String,Object> map = new HashMap<>();
        map.put("startTime",startTime);
        setParameterValues(map);
    }
}
